// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Cookies from 'js-cookie'
import router from './router'
import store from './store'
import '@/assets/css/border.css'


import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
// 全局修改默认配置
// Element.Dialog.props.closeOnClickModal.default = false
Vue.use(Element, {
  size: Cookies.get('size') || 'medium', // set element-ui default size
  i18n: (key, value) => i18n.t(key, value)
})


import '@/styles/animate.css'
import '@/assets/css/iconfont/iconfont.css'
// import '@/assets/css/iconfont.js'

// swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)
import '@/styles/common.css'
import $common from '@/utils/plugin/common.js'
Vue.prototype.$common = $common

Vue.config.productionTip = false
// console.log('router',router)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
